package com.newsoft.codegen.common;


import java.util.List;
import java.util.Map;



public interface BaseService<T,S> {
	
	public void save(T model);
	
	public void deleteById(Long id);
	
	public void delete(T model);
	
	public void update(T model);
	
	//public void saveOrUpdate(T model);
	
	public List<T> query(T model);
	
	public T queryById(Long id);
	
	public Long count();
	
	public List<T> queryForPage(Map<String,Object> map);
	
    List<T> queryForPages(S search);
    
	 
	Long count(S search);
	 
    void deleteByIds(List<String> ids);

}
